<?php
/**
 * Stripe 字段
 *
 * @copyright  2022 beikeshop.com - All Rights Reserved
 * @link       https://beikeshop.com
 * @author     Edward Yang <yangjin@guangda.work>
 * @created    2022-06-29 21:16:23
 * @modified   2022-06-29 21:16:23
 */

return [
    [
        'name'        => 'wooshpay_key',
        'label'       => 'wooshpay key',
        'type'        => 'string',
        'required'    => true,
        'rules'       => 'required',
        'description' => 'wooshpay 秘钥',
    ],
    // [
    //     "name"          =>  'username',
    //     'label'         =>  '账号',
    //     'type'          =>  'string',
    //     "required"      =>  false,
    //     "rules"         =>  '',
    //     'description'   =>  'wooshpay 账号'
    // ],[
    //     "name"          =>  'password',
    //     'label'         =>  '密码',
    //     'type'          =>  'string',
    //     "required"      =>  false,
    //     "rules"         =>  '',
    //     'description'   =>  'wooshpay 密码'
    // ],
    [
        'name'        => 'api_mode',
        'label'   => '请求接口',
        'type'        => 'select',
        'options'     => [
            ['value' => 'apitest', 'label_key' => 'setting.api_mode_label_test'],
            ['value' => 'api', 'label_key' => 'setting.api_mode_label_api'],
        ],
        'required'    => true,
        'rules'         =>  'required',
        'description' => '使用接口环境',
    ],
];
